package org.example.studentsystem_back.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.studentsystem_back.domain.Building;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.studentsystem_back.domain.Leaders;

import java.util.List;

/**
* @author 马鑫
* @description 针对表【building】的数据库操作Mapper
* @createDate 2024-07-12 09:30:33
* @Entity org.example.studentsystem_back.domain.Building
*/
@Mapper
public interface BuildingMapper extends BaseMapper<Building> {
    @Select("SELECT * FROM building LIMIT ${limit} OFFSET ${page};")
    List<Building> getBuildingByPage(int limit, int page);
}




